# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=recordmydesktop
pkgver=0.4.0
pkgrel=0
pkgdesc="Produces a OGG encapsulated Theora/Vorbis recording of your desktop"
url="https://github.com/Enselic/recordmydesktop"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	alsa-lib-dev
	autoconf
	automake
	libsm-dev
	libtheora-dev
	libtool
	libvorbis-dev
	libxdamage-dev
	libxext-dev
	popt-dev
	zlib-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/Enselic/recordmydesktop/releases/download/v$pkgver/recordmydesktop-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-jack
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
4b0a141c68e10679cfce53efac518e254b0cd361b6769aaf22fdb25a2162e7cc255eb741dd671a908dafa370d464b0e298b7386b561a6a721e8419632982a1e0  recordmydesktop-0.4.0.tar.gz
"
